from termcolor import colored as _colored

def colored(color,text,needBack=False):

    fore,back=color

    args=(fore.name.lower(),)
    if needBack and back:
        args=args+('on_{color}'.format(color==back.name.lower()),)
    
    return _colored(text,*args, attrs = ( () if not fore.bold else ('bold',) ) )
